import session from './../models/session';

export default {
    create(params: object | any) {
        return session.set(params.key, params.value, 'EX', 1000 * 60 * 10);
    },
    query(params: object | any) {
        return session.get(params.key);
    }
};